﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Admin_MasterPage : System.Web.UI.MasterPage
{
    string userName = null;
    protected void Page_Load(object sender, EventArgs e)
    {
        userName = (string)Session["Username"];
        txtName.Text = userName;
        if (!"True".Equals(Session["checkLogin"]))
        {
            Response.Redirect("Login.aspx");

        }
        if (Request["type"] == "logout") {
            Session["checkLogin"] = null;
            Response.Redirect("Login.aspx");
        }
    }
}
